﻿using System.ComponentModel.DataAnnotations;
using Peninsula.Site.Data;

namespace Peninsula.Web.Areas.Backstage.Models.Account
{
    public class LoginViewModel
    {
        [Required]
        [Display(Name = "账户")]
        //[RegularExpression(pattern: ValidationConstant.UserNameValReg, ErrorMessage = ValidationConstant.UserNameValMessage)]
        public string AdminName { get; set; }

        [Required]
        [Display(Name = "密码")]
        [RegularExpression(pattern: ValidationConstant.PasswordValReg, ErrorMessage = ValidationConstant.PasswordValMessage)]
        public string Password { get; set; }

        [Display(Name = "记住我?")]
        public bool RememberMe { get; set; }

        public string ReturnUrl { get; set; }
    }
}